﻿/***************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    This code is licensed under the Visual Studio 
    Visualization and Modeling SDK license terms.

    THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
    ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
    IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
    PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
***************************************************************************/
namespace Microsoft.VisualStudio.ArchitectureTools.CodeRepositoryQuery
{
    public partial class MethodDefinition :  IMember
    {
        #region IMember Members
        /// <summary>
        /// Provides a strongly typed access to the visibility of theMethodDefinition
        /// </summary>
        public AccessType Access
        {
            get
            {
                return (AccessType)AccessAsShort;
            }
            
        }


        /// <summary>
        /// Name of the member
        /// </summary>
        string IMember.Name
        {
            get 
            {
                return this.Method.Name;
            }
        }

        #endregion

        /// <summary>
        /// Display label
        /// </summary>
        public override string ToString()
        {
            return this.Method.DisplayName;
        }
    }
}
